
#import <Foundation/Foundation.h>
@class SMBanner, SMMoment, SMTradeItem;

@interface SMDataStore : NSObject
+ (instancetype)shared;
@property (nonatomic, strong, readonly) NSArray<SMBanner *> *banners;
@property (nonatomic, strong, readonly) NSArray<NSDictionary *> *homeNews; // 简单数组
@property (nonatomic, strong, readonly) NSMutableArray<SMMoment *> *moments;
@property (nonatomic, strong, readonly) NSMutableArray<SMTradeItem *> *supply;
@property (nonatomic, strong, readonly) NSMutableArray<SMTradeItem *> *demand;

- (void)addMoment:(SMMoment *)m;
- (NSArray<NSDictionary *> *)homeNewsForCategory:(NSString *)category;

- (NSArray<NSDictionary *> *)homeNewsForCategory:(NSString *)category
                                            page:(NSInteger)page
                                        pageSize:(NSInteger)pageSize;

- (NSArray<SMBanner *> *)bannersForCategory:(NSString *)category;


@end
